﻿using AngleSharp;
using AngleSharp.Dom;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace SharpSoft.Html
{
    public static class Loader
    {
        private static IConfiguration config = Configuration.Default.WithDefaultLoader();
        public async static Task<IDocument> loadAsync(string address)
        {
            var document = await BrowsingContext.New(config).OpenAsync(address);
            return document;
        }
    }
}
